package com.cscp.javastudy.designpattern.prototype.demo2;

import java.util.Date;

public class Client {

    public static void main(String[] args) throws CloneNotSupportedException {

        // 原型对象
        Date date = new Date();
        Vedio v1 = new Vedio("whereisjava", date);
        Vedio v2 = (Vedio) v1.clone();

        System.out.println("v1 -> " + v1);
        System.out.println("v2 -> " + v2);

        System.out.println("======================");
        date.setTime(659825634);
        System.out.println("v1 -> " + v1);
        System.out.println("v2 -> " + v2);

    }

}
